#include <iostream>
#include<ctime>
#include<fstream>


using namespace std;

void bubbleSort(int list[], int listLength){

}

void read_from_file(string filename, int a[], int length){

}

int main()
{
    #define LEN 5000
    int a[LEN];
    int b,c;
    read_from_file("m1_sorted.txt ", a, LEN);
    unsigned int t_start = clock();
    bubbleSort(a,LEN);


    int r[5000];

    for(int i=0;i<5000;i++){
        for (int k=0;k<4999;k++){
            if (r[k]>r[k+1]){
                int b=r[k];
                r[k]=r[k+1];
                r[k+1]=b;
            }
        }
    }



    unsigned int t_finish = clock();
    unsigned int t_work = t_finish - t_start;
    cout<<"m1_sorted "<<t_work<<" milliseconds \n";

    read_from_file("m2_sorted.txt ", a, LEN);
    t_start = clock();
    bubbleSort(a,LEN);
    int g,d;
    int e[5000];

    for(int f=0;f<5000;f++){
        for (int g=0;g<4999;g++){
            if (e[g]>r[g+1]){
                int d=e[g];
                e[g]=e[g+1];
                e[g+1]=d;
            }
        }
    }



    t_finish = clock();
    t_work = t_finish - t_start;
    cout<<"m2_reverse "<<t_work<<" milliseconds \n";

    read_from_file("m3_sorted.txt ", a, LEN);
    t_start = clock();
    bubbleSort(a,LEN);


    int v,x;
    int q[5000];

    for(int f=0;f<5000;f++){
        for (int v=0;v<4999;v++){
            if (q[v]>r[v+1]){
                int x=q[v];
                q[v]=q[v+1];
                q[v+1]=x;
            }
        }
    }


    t_finish = clock();
    t_work = t_finish - t_start;
    cout<<"m3_shuffle "<<t_work<<" milliseconds \n";

    return 0;
}


